package com.dc.zuul.responsibility.impl;

import com.dc.zuul.responsibility.GatewayHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author: KEYD
 * @Date: 2020/1/19 12:08
 * @Desc: 检验API接口的处理类
 */
@Component
@Slf4j
public class ApiCheckTokenHandler implements GatewayHandler {
    private GatewayHandler nextGatewayHandler;

    @Override
    public boolean service() {
        log.info("<<<<<<<流程3 API验证Token>>>>>>>");
        return true;
    }

    @Override
    public void setNextHandler(GatewayHandler nextGatewayHandler) {
        this.nextGatewayHandler = nextGatewayHandler;
    }
}
